// 获取所有门店
export const reqShopList = () => request({ url: "/shop", method: "get" });

// 添加或修改分类
export const reqAddOrUpdateShop = (data) => {
  if (data._id) {
    return request({ url: "/shop", method: "put", data });
  } else {
    return request({ url: "/shop", method: "post", data });
  }
};

// 删除门店

// 删除类型
export const reqDeleteShop = (data) =>
  request({ url: "/shop", method: "delete", data });
